package com.sailfish.config.apollo.controller;

import com.sailfish.config.apollo.config.UserAccess;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 用户业务相关接口
 *
 * @author xiaxinyu
 */
@RestController
@RequestMapping("/v1/")
public class PingController {
    @GetMapping("/ping")
    @UserAccess
    public String ping() {
        return "pong";
    }
}
